module poreset(
    input clk,
    input rst,
    output rstd
);
    localparam DL = 10;
    reg rsted;
    reg [4:0] cnt;
    always @(posedge clk) begin
        if(rst) begin
            rsted<=0;
            cnt<=0;
        end else if(rsted==0)
            cnt<=cnt+1;
        if(cnt>=DL) begin
            rsted<=1;
        end
    end
    assign rstd=!rsted;
endmodule

